const {promisify} = require('util')
const figlet = promisify(require('figlet'))
const clear = require('clear')
const chalk = require('chalk')
const log = content => console.log(chalk.green(content))
module.exports = async name => {
 // 打印欢迎画⾯
 clear()
 const data = await figlet('KKB Welcome')
 log(data)
}

// Vue初始化流程

// new Vue() =======> _init() =========> initLifeCycle() =================(确定父组件以及根组件)==============> initEvent() =========>

// initRender() ========> beforeCreate() ============> initInject() ======> initState() ==================（初始化props、data、methods、computed、watch）=======>

// initProvide() ========> mount() =======> mountComponent() =========> 第一次执行挂载、创建 updateComponent、 Watcher

// =======> _update() =========> _patch_() =============> mounted()


// reactive 


